package com.labo.erpcrm.metier;

import java.util.Collections;
import java.util.List;
import com.labo.erpcrm.bean.Client;
import com.labo.erpcrm.dao.ClientDao;
import com.labo.erpcrm.utils.SortClientByName;

//renvoie tous les clients existants
public class ListeClientsBusiness {
	
	public String nomClient;
	public List<Client> listClient;
	public List<Client> GetAllClients(){
		ClientDao clientDao=new ClientDao();
		listClient=clientDao.GetAll();	
		Collections.sort(listClient,new SortClientByName());
		return listClient;
	}
}
